<?php
session_start();
if(session_is_registered($_GET["user_id"])){}
else 
die("<a href='../index.php'>PLEASE LOGIN AGAIN... </a>");
?>

<script src="../lib/ajax_json.js" type="text/javascript"></script>
<script src="../lib/ajax_fnc.js" type="text/javascript" language="javascript"></script>
<link href="../css/screen.css" media="screen" type="text/css" rel="stylesheet">
<script type="text/javascript">
$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#add_exp").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 
});
</script>

<?php
include("../classes/experience.class.php");
include("../connect.php");
//$user_id = 6;
$user_id = $_GET["user_id"];
$exp = new experience();
$exp->id_user = $user_id;
$exp->get_experience($user_id);
echo '<p class="slide"><a href="#" class="btn-slide"><img src="../images/new_data.gif"><font id="image_link"> Ajouter </font></a></p>';
echo "<div id='add_exp' style='display:none'>";
$exp->show_add_form();
echo "</div>";

?>

<script language="javascript">
show_exp('<?=$user_id?>');
</script>

<div id='show_exp' class="div_note"> </div>
<!--<div id='result'> </div>-->